// index.js
Page({
  data: {
    users: [
      {
        id: 1,
        name: '张三丰',
        score: 101
      },
      {
        id: 2,
        name: '张无忌',
        score: 50
      },
      {
        id: 3,
        name: '张翠山',
        score: 89
      },
      {
        id: 4,
        name: '周芷若',
        score: -29
      },
      {
        id: 5,
        name: '赵敏',
        score: 69
      }
    ],
    rules: [
      {min: 0, max: 59, level: '不及格'},
      {min: 60, max: 69, level: '及格'},
      {min: 70, max: 79, level: '中等'},
      {min: 80, max: 89, level: '良好'},
      {min: 90, max: 100, level: '优秀'},
      
    ],
    reviewer: [['白眉鹰王', '青翼蝠王', '金毛狮王', '紫衫龙王'],
              ['白眉鹰王', '殷素素', '殷天正'],
              ['武当七侠'],
              ['灭绝师太', '蛛儿'],
              ['苦头托', '鹿杖客', '阳顶天']],
    banner_list: []
  },

  onLoad(options) {
    var page = this
    wx.request({
      url: 'https://m.toutiao.com/list/?tag=all&max_time=0&min_behot_time=0&ac=wap&count=20&format=json_raw&_signature=iv9QUAAA7H0rlnfjM1d3q4r.UE&i=&as=A1567609E0CE9B3&cp=66901EE9EBF3FE1&aid=1698',
      method: 'GET',
      header: {
        'Content-Type': 'application/json',
      },
      success(res) {
        console.log(res)
        // console.log(res.data.data[0].url)
        // page.setData({
        //   banner_list: res.data.data.url
        // })
        
      }
    })
  }

})
